/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

/**
 * <p>Project: jse2302 - Ex7
 * <p>Powered by webrx On 2023-06-13 09:34:49
 * <p>Created by IntelliJ IDEA
 *
 * @author  webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Ex7 {
    public static void main(String[] args) {
        int n = 0;
        for (int a = 0; a < 100 / 5; a++) {
            for (int b = 0; b < 100 / 3; b++) {
                for (int c = 0; c < 100; c++) {
                    if (c % 3 == 0) {
                        int s1 = a + b + c;
                        int s2 = a * 5 + b * 3 + c / 3;
                        if (s1 == 100 && s2 == 100) {
                            System.out.printf("方案" + ++n + "：公鸡：%d，母鸡：%d，小鸡：%d %n", a, b, c);
                        }
                    }
                }
            }
        }
    }
}
